home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3
/
Xm
/
XmeClearBorder.z
/
XmeClearBorder
Wrap
Text File
|
1998-10-30
|
6KB
|
133 lines
XXXXmmmmeeeeCCCClllleeeeaaaarrrrBBBBoooorrrrddddeeeerrrr((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmeeeeCCCClllleeeeaaaarrrrBBBBoooorrrrddddeeeerrrr((((3333XXXX))))
NNNNAAAAMMMMEEEE
XXXXmmmmeeeeCCCClllleeeeaaaarrrrBBBBoooorrrrddddeeeerrrr - Clears the window decorations that border a
given widget
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
#include <Xm/DrawP.h>
vvvvooooiiiidddd XXXXmmmmeeeeCCCClllleeeeaaaarrrrBBBBoooorrrrddddeeeerrrr(
DDDDiiiissssppppllllaaaayyyy ****ddddiiiissssppppllllaaaayyyy,
WWWWiiiinnnnddddoooowwww wwwwiiiinnnnddddoooowwww,
PPPPoooossssiiiittttiiiioooonnnn xxxx,
PPPPoooossssiiiittttiiiioooonnnn yyyy,
DDDDiiiimmmmeeeennnnssssiiiioooonnnn wwwwiiiiddddtttthhhh,
DDDDiiiimmmmeeeennnnssssiiiioooonnnn hhhheeeeiiiigggghhhhtttt,
DDDDiiiimmmmeeeennnnssssiiiioooonnnn tttthhhhiiiicccckkkknnnneeeessssssss);
VVVVEEEERRRRSSSSIIIIOOOONNNN
This page documents Motif 2.1.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
XXXXmmmmeeeeCCCClllleeeeaaaarrrrBBBBoooorrrrddddeeeerrrr clears the border highlight and/or shadows
bordering a rectangular widget. To clear these window
decorations, XXXXmmmmeeeeCCCClllleeeeaaaarrrrBBBBoooorrrrddddeeeerrrr paints them in the widget's
background color.
The border highlight surrounds the perimeter of a widget.
When calling XXXXmmmmeeeeCCCClllleeeeaaaarrrrBBBBoooorrrrddddeeeerrrr to clear the border highlight,
your widget should do the following:
+o Set _x and _y to 0.
+o Set _w_i_d_t_h and _h_e_i_g_h_t to the width and height of
_w_i_n_d_o_w.
+o Set _t_h_i_c_k_n_e_s_s to the highlight thickness. (If you are
subclassing a primitive widget, then the highlight
thickness is stored in the field
pppprrrriiiimmmmiiiittttiiiivvvveeee....hhhhiiiigggghhhhlllliiiigggghhhhtttt____tttthhhhiiiicccckkkknnnneeeessssssss.)
The widget's shadows lie within the border highlights. When
calling XXXXmmmmeeeeCCCClllleeeeaaaarrrrBBBBoooorrrrddddeeeerrrr to clear the shadows, your widget
should do the following:
+o Set _x and _y to the highlight thickness.
+o Set _w_i_d_t_h so that it equals the width of the window
minus twice the highlight thickness.
+o Set _h_e_i_g_h_t so that it equals the height of the window
minus twice the highlight thickness.
+o Set _t_h_i_c_k_n_e_s_s to the shadow thickness of the widget.
(If you are subclassing a primitive widget, the shadow
Page 1 (printed 10/24/98)
XXXXmmmmeeeeCCCClllleeeeaaaarrrrBBBBoooorrrrddddeeeerrrr((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmeeeeCCCClllleeeeaaaarrrrBBBBoooorrrrddddeeeerrrr((((3333XXXX))))
thickness is stored in the field
pppprrrriiiimmmmiiiittttiiiivvvveeee....sssshhhhaaaaddddoooowwww____tttthhhhiiiicccckkkknnnneeeessssssss.)
_d_i_s_p_l_a_y Specifies the display on which _w_i_n_d_o_w is rendered.
_w_i_n_d_o_w Specifies the window whose decorations are to be
erased.
_x Specifies the x-coordinate in pixels of the left
edge of whatever decoration is to be cleared.
_y Specifies the y-coordinate in pixels of the top
edge of whatever decoration is to be cleared.
_w_i_d_t_h Specifies the width in pixels of the top edge of
whatever decoration is to be cleared.
_h_e_i_g_h_t Specifies the height in pixels of the left edge of
whatever decoration is to be cleared.
_t_h_i_c_k_n_e_s_s Specifies the thickness in pixels of whatever
decoration is to be cleared.
RRRREEEELLLLAAAATTTTEEEEDDDD
XXXXmmmmeeeeDDDDrrrraaaawwwwSSSShhhhaaaaddddoooowwwwssss(3) and XXXXmmmmeeeeDDDDrrrraaaawwwwHHHHiiiigggghhhhlllliiiigggghhhhtttt(3).
Page 2 (printed 10/24/98)